package com.core.website.entity;

import cn.easyes.annotation.IndexField;
import cn.easyes.annotation.IndexId;
import lombok.Data;

import java.util.Date;

import static cn.easyes.common.enums.IdType.CUSTOMIZE;

@Data
public class EsContent {
    @IndexId(type = CUSTOMIZE)
    private String id;
    @IndexField(value = "title")
    private String title;
    @IndexField(value = "content")
    private String content;
    @IndexField(value = "createTime")
    private Date createTime;
    @IndexField(value = "columnId")
    private String columnId;//归属栏目
    @IndexField(value = "author")
    private String author;//作者
    @IndexField(value = "postedBy")
    private String postedBy;//投稿人
    @IndexField(value = "organization")
    private String organization;//机构id
    @IndexField(value = "approval")
    private String approval;
    @IndexField(value = "approvalTime")
    private Date approvalTime;


}
